
<h1>Update Recipe</h1>

<div id ="ingredients_list">
   <%#= render(:partial => "ingredient_list", :object => @recipemedia.rmedia) %>
   <%= render(:partial => "ingredients/ingredients", :object => @recipemedia.rmedia) %>
</div>


<%  form_for @recipemedia.rmedia, :url => { :action => "update_finalize", :id=>@recipemedia } do |f| %>
  <%= f.error_messages %>
<p>
  <%= f.label :title %><br />
  <%= f.text_field :title %>
</p>

<p>
  <%= f.label :category %><br />
  <%= f.text_field :category %>
</p>

<p>
  <%= f.label :directions %><br />
  <%= f.text_area :directions, :cols => 60, :rows => 10  %>
</p>
<p>
  <%= f.label :description %><br />
  <%= f.text_area :description, :cols => 60, :rows => 5 %>
</p>

<p>
    <%= f.submit "Update" %>
</p>
<% end %>

<%= link_to 'Back', :controller=>"recipe", :action=>"index" %>
